
package com.example.medical_delivery_system.dao;

import com.example.medical_delivery_system.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.example.medical_delivery_system.util.PageQueryUtil;
import com.example.medical_delivery_system.service.impl.UserServiceImpl;

import java.util.List;


@Mapper
public interface UserMapper {
//    int insert(User record);

    User selectByLoginNameAndPasswd(@Param("loginName") String loginName, @Param("userPasswd") String userPasswd);

    int insertSelective(User record);

    User login(@Param("loginName") String loginName, @Param("userPasswd") String userPasswd);

    User selectByPrimaryKey(Long uId);

    int updateByPrimaryKeySelective(User record);

    User selectByLoginName(String uName);

//    int updateByPrimaryKey(User record);


}